
{% if page.version.id == "v3" %}
  <div id='docs-controls-warning'>
    These docs are for an old release.
    <a href='{{ site.baseurl }}/docs/upgrading-from-v3'>
      Info on upgrading to v4
    </a>
  </div>
{% elsif page.version.id == "v1" %}
  <div id='docs-controls-warning'>
    These docs are for an old release.
    <a href='{{ site.baseurl }}/docs/v3/upgrading-from-v1'>
      Info on upgrading to version 2/3
    </a>
  </div>
{% else %}
  <div id='docs-controls-warning' style='display:none'>
    {% comment %}for JS to dynamically inject warning{% endcomment %}
  </div>
{% endif %}
